<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">

<#include "/common/pagerForm.html">
<style>


.searchBar.workUnit ul.searchContent li label{
    width:120px;
}

.searchBar.workUnit ul.searchContent li select{
    float:left;
}


.searchBar.workUnit ul.searchContent li.query{
    width:100px;
    padding-left:15px;
}
</style>
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar workUnit" >
            <ul class="searchContent">
                <li ><label  id="workUnitCode" ><@label key="workUnitCode.C,colon">作业单元编号：</@label></label> <input type="text" class="textInput" name="workUnitCode" value="${condition.workUnitCode!''}" /></li>
                <li ><label  id="workUnitText""><@label key="workUnitText.C,colon">作业单元描述：</@label></label> <input type="text" class="textInput" name="workUnitText" value="${condition.workUnitText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li ><label  id="workCenterCode""><@label key="workCenterCode.C,colon">工厂中心编号：</@label></label> <input type="text" class="textInput" name="workCenterCode" value="${condition.workCenterCode!''}" /></li>
                <li >
                        <label ><@label key="lockFlag.L">锁定标记：</@label></label> 
                            <select name="lockFlag">
                                <option value=-1><@label key="all.C">所有</@label></option>
                                <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                                <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                            </select>
                </li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="workUnit_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="850" height="480" href="${rc.getContextPath()}/manage/workUnit/addWorkUnit?navTabId=${navTabId!''}"  rel="addWorkUnit" title="<@label key='addWorkUnit.D'>新增作业单元</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="workUnit_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="850" height="550" href="${rc.getContextPath()}/manage/workUnit/modifyWorkUnit?id={workUnit_code}&navTabId=${navTabId!''}" rel="editWorkUnit" title="<@label key='editWorkUnit.D'>编辑作业单元</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="workUnit_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="850" height="550" href="${rc.getContextPath()}/manage/workUnit/viewWorkUnit?id={workUnit_code}&navTabId=${navTabId!''}"  rel="viewWorkUnit"title="<@label key='viewWorkUnit.D'>作业单元详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="workUnit_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/workUnit/deleteWorkUnit?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='delWorkUnit.M'>确认要删除选择的作业单元吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="168" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="100" orderField="workUnitCode"<#if (page.orderField?? && page.orderField == 'workUnitCode')>class="${page.orderDirection!''}"</#if>><@label key="workUnitCode.C">作业单元编号</@label></th>
                <th width="100" orderField="workUnitText"<#if (page.orderField?? && page.orderField == 'workUnitText')>class="${page.orderDirection!''}"</#if>><@label key="workUnitText.C">作业单元描述</@label></th>
                <th width="100" orderField="workCenterCode"<#if (page.orderField?? && page.orderField == 'workCenterCode')>class="${page.orderDirection!''}"</#if>><@label key="workCenterCode.C">工作中心编号</@label></th>
                <th width="60" orderField="calendarCode"<#if (page.orderField?? && page.orderField == 'calendarCode')>class="${page.orderDirection!''}"</#if>><@label key="calendarCode.C">日历编号</@label></th>
                <th width="100" orderField="warehouseCode"<#if (page.orderField?? && page.orderField == 'warehouseCode')>class="${page.orderDirection!''}"</#if>><@label key="WarehouseCode.C">线边仓库编号</@label></th>
                <th width="60" orderField="storageLocationCode"<#if (page.orderField?? && page.orderField == 'storageLocationCode')>class="${page.orderDirection!''}"</#if>><@label key="storageLocationCode.C">线边库位编号</@label></th>
                
                <th width="40" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as workUnit>
            <tr target="workUnit_code" rel="${workUnit.workUnitCode!''}">
                <td><input name="ids" value="${workUnit.workUnitCode!''}" type="checkbox"></td>
                <td>${workUnit.workUnitCode!''}</td>
                <td>${workUnit.workUnitText!''}</td>
                <td>${workUnit.workCenterCode!''}</td>
                <td>${workUnit.calendarCode!''}</td>
                <td>${workUnit.warehouseCode!''}</td>
                <td>${workUnit.storageLocationCode!''}</td>
                <td><#if workUnit.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td>${workUnit.createUser!''}</td>
                <td>${workUnit.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${workUnit.modifyUser!''}</td>
                <td>${workUnit.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
            </tr>
            </#list> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
    
</div>